home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
fax
/
src
/
port
/
bsdi
/
defs
< prev
next >
Wrap
Text File
|
1994-08-01
|
9KB
|
321 lines
# $Header: /usr/people/sam/fax/port/bsdi/RCS/defs,v 1.30 1994/03/29 01:06:09 sam Rel $
#
# FlexFAX Facsimile Software
#
# Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
# Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
#
# These definitions are for building the software on a 486 under
# BSDi gamma4 using gcc 2.3.3 and libg++?.?
#
# TARGET: bsdi bsd/386 1.1
# COMPILER: gcc2
#
SHELL = /bin/sh
DESTDIR = .
NULL =
MAKEFILE= Makefile
#
# Location of auxiliary stuff needed
#
PORT = ${DEPTH}/port/bsdi
GENERIC = ${DEPTH}/port/generic
#
# Basic tools used in the build process.
#
C++ = /usr/bin/g++
CC = /usr/bin/gcc2
NAWK = /usr/bin/awk
INSTALL = sh ${PORT}/install.sh
MKDEPEND= ${GENERIC}/mkdepend
AR = /usr/bin/ar
RANLIB = /usr/bin/ranlib
SED = /usr/bin/sed
#
# AR options for creating/updating an archive
#
AROPTS= crl
#
# Special options for lptops compilation (yech).
#
LPTOPSLCOPTS=
#
# BSD execs getty to do the work.
#
SYSGETTY=GettyBSD.c++
#
# BSDi wants BSD-style UUCP lock support.
#
UUCP_LOCKDIR=/var/spool/uucp
UUCP_LOCKTYPE=1
UUCP_LOCKMODE=0644
#
# Location of Adobe Font Metrics for lptops.
#
AFMDIR=/usr/contrib/lib/flexfax/afm
#
# PostScript imager for server. PSPACKAGE is one of:
#
# dps for Display Postscript
# gs for Ghostscript
#
# and PSIMAGER is the pathname of the binary executable.
#
PSPACKAGE=gs
PSIMAGER=/usr/contrib/bin/gs
#
# Mail program for sending notification messages.
#
SENDMAIL=/usr/sbin/sendmail
#
# Default optimizer and prototype options
#
OPTIMIZER=-g -O
#PROTOTYPES=-prototypes
CVERSION=-D__ANSI_CPP__
GVERSION=
C++FILE=-x c++
# default definitions for programs--overide them as desired
LIBS= ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT} -lutil
LLDLIBS=${LIBS} ${MACHDEPLIBS}
#
# Override this definition to eliminate shared library use.
#
SHDLIBC=-lc
#
# Libraries that may vary from machine to machine (especially if
# you use GNU GCC instead of AT&T C++).
#
MACHDEPLIBS=-lg++
#
# You must have v3.0 or newer of the TIFF library. If
# you already have it installed, or if you have version 3.0
# or newer of InterViews installed (which includes the TIFF
# library), you can point these to those places. Otherwise,
# you can just use the code provided here.
#
TIFF= ${DEPTH}/libtiff
LIBTIFF=${TIFF}/libtiff.a
#
# If you already have InterViews 3.0 or newer installed,
# define these to be something like:
#
#IV= /usr/include
#LIBIV= /usr/lib/libIV.a
#
# Otherwise you can just use the subset of classes used by
# the fax software and collected here in a hacked-up library.
#
IV= ${DEPTH}/iv
LIBIV= ${IV}/libivhack.a
# random utility functions and classes
UTIL= ${DEPTH}/util
LIBUTIL=${UTIL}/libfaxutil.a
LIBPORT=${PORT}/libport.a
#
# Uid&Gid for installing server stuff. Note that the server process
# proper (/usr/etc/faxd or similar) must either run setuid root or
# setuid uucp (i.e. fax and uucp must have the same uid). This is
# so that the fax server can participate in the UUCP locking scheme
# and thereby implement tty line sharing (i.e. share the same line
# and modem for both fax and data).
#
FAXUSER=uucp
FAXGROUP=dialer
#
# Directories where stuff gets placed:
#
# BIN client-directed applications
# LIBDATA client-directed application library data files
# LIBEXEC client-directed application library executables
# SPOOL spooling area for servers
# DOC non-manual documentation
# USRETC place for servers (faxd & faxd.recv)
#
BIN= /usr/contrib/bin
LIBDATA=/usr/contrib/lib/flexfax
LIBEXEC=/usr/contrib/lib/flexfax
SPOOL= /var/spool/flexfax
DOC= /usr/share/doc/flexfax
USRETC= /usr/contrib/bin
#
# Manual-related controls:
#
# MAN head of manual tree
# MANAPP subdirectory for stuff in BIN
# MANSYS subdirectory for server & server-related apps
# MANFILES subdirectory for file format info
# PAGEDIRT temp files to remove on clean/clobber
#
MAN = /usr/contrib/man
MANAPPS = man1
MANSYS = man8
MANFILES= man5
MANCAPP = ${CLIENTAPPS}
MANCFILE= ${CLIENTFILES:.4f=.5f}
MANSAPP = ${SERVERAPPS:.1m=.8c}
MANSFILE= ${SERVERFILES:.4f=.5f}
PAGEDIRT= ${MANCFILE} ${MANSAPP} ${MANSFILE}
.SUFFIXES: .1m .4f .5f .8c
.1m.8c:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
.4f.5f:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
# programs used during installation
ECHO= /bin/echo
GREP= /usr/bin/grep
RM= /bin/rm
PWD= /bin/pwd
CHROOT= /usr/sbin/chroot
#
# Definitions used by common rules.
#
COMMONRULES=${DEPTH}/rules
COMMONTARGS= clobber clean rmtargets depend incdepend
#
# C compiler flags are composed of variable (set on the command line),
# local (defined in the makefile), and global (defined in this file)
# parts, in that order. This ordering is used so that variable or
# locally specified include directories are searched before the globally
# specified ones.
#
CFLAGS= ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
COPTS= ${VCOPTS} ${LCOPTS} ${GCOPTS}
CDEFS= ${VCDEFS} ${LCDEFS} ${GCDEFS}
CINCS= ${VCINCS} ${LCINCS} ${GCINCS}
GCOPTS= ${OPTIMIZER} ${PROTOTYPES}
GCDEFS=-DSIGCLD=SIGCHLD
GCINCS= -I- -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
#
# C++ flags are decomposed using the same hierarchy as C flags.
#
C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
GC++OPTS=${OPTIMIZER}
GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
GC++DEFS=-DfxSIGHANDLER=sig_t '-DfxSIGVECHANDLER=(void(*)(int))' -DSIGCLD=SIGCHLD -DLOG_FAX=LOG_LOCAL5
#
# Loader flags, composed of library (-l's) and option parts, with
# the libraries appearing last. Both of these are divided into variable,
# local, and global parts. The composition of LDFLAGS is done in the
# other "direction" from CFLAGS so that all the -L's, that are part of
# LDOPTS, appear before any of the -l's, which are part of LDLIBS.
# Another benefit of segregating the libraries from the remaining of the
# loader options is that the libraries alone can easily be given to
# another program, e.g., lint.
#
# Notes:
# - If a program should not be linked with the shared version of libc,
# then its make file should override the setting of SHDLIBC with a
# line such as "SHDLIBC=".
#
LDFLAGS=${LDOPTS} ${LDLIBS}
LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
GLDOPTS=-L${ROOT}/usr/local/lib
GLDLIBS=${SHDLIBC}
#
# Convenient command macros that include the flags macros.
#
C++F= ${C++} ${C++FLAGS}
CCF= ${CC} ${CFLAGS}
#
# Shell script for generating make dependencies. MKDEPEND is a shorthand
# for the tool's absolute pathname. MKDEPENDC adds MKDEPCFLAGS and the -c
# mkdepend option to this. The other language's mkdepend variables try to
# include their language's name in the variable names. Unfortunately, a
# lot of makefiles already use the nondescript LMKDEPFLAGS for C language
# mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
#
MKDEPENDC++ =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
MKDEPENDC =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
MKDEPC++FLAGS =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
MKDEPCFLAGS =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
LMKDEPCFLAGS =${LMKDEPFLAGS}
GMKDEPFLAGS =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
GMKDEPC++FLAGS =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
GMKDEPCFLAGS =${GMKDEPFLAGS}
#
# Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
# single-source programs using null suffix rules (e.g., .c:}. This option
# works for both C and C++ make depend.
#
NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
#
# MKDEPFILE is the name of the dependency database, included by rules.
#
MKDEPFILE=Makedepend
#
# CDEPFILES lists all C or cc-compiled source files that depend on header
# files computable by ${MKDEPENDC}. C++DEPFILES lists all C++ files having
# dependencies computable by ${MKDEPENDC++}.
#
C++DEPFILES=${C++FILES}
CDEPFILES=${CFILES}
DEPFILES=${C++DEPFILES} ${CDEPFILES}
#
# Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
#
INCLDIR =${ROOT}/usr/include